import React, { Component } from 'react'

export default class List extends Component {
  render() {
    console.log(this.props)
    return (
      <div>
        {
          this.props.data.map((item,index)=>{
            return(
              <div key={index}>
                <span>{item.msg}</span>
                <button>完成没</button>
              </div>
            )
          })
        }
      </div>
    )
  }
}
